package com.baizhi.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Banner implements Serializable {
    private int bannerId;
    private String bannerOldName;
    private String bannerImageUrl;
    private int bannerStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date bannerDate;
    private String bannerDescription;

    public Banner(int bannerId, String bannerOldName, String bannerImageUrl, int bannerStatus, Date bannerDate, String bannerDescription) {
        this.bannerId = bannerId;
        this.bannerOldName = bannerOldName;
        this.bannerImageUrl = bannerImageUrl;
        this.bannerStatus = bannerStatus;
        this.bannerDate = bannerDate;
        this.bannerDescription = bannerDescription;
    }

    @Override
    public String toString() {
        return "Banner{" +
                "bannerId=" + bannerId +
                ", bannerOldName='" + bannerOldName + '\'' +
                ", bannerImageUrl='" + bannerImageUrl + '\'' +
                ", bannerStatus=" + bannerStatus +
                ", bannerDate=" + bannerDate +
                ", bannerDescription='" + bannerDescription + '\'' +
                '}';
    }

    public int getBannerId() {
        return bannerId;
    }

    public void setBannerId(int bannerId) {
        this.bannerId = bannerId;
    }

    public String getBannerOldName() {
        return bannerOldName;
    }

    public void setBannerOldName(String bannerOldName) {
        this.bannerOldName = bannerOldName;
    }

    public String getBannerImageUrl() {
        return bannerImageUrl;
    }

    public void setBannerImageUrl(String bannerImageUrl) {
        this.bannerImageUrl = bannerImageUrl;
    }

    public int getBannerStatus() {
        return bannerStatus;
    }

    public void setBannerStatus(int bannerStatus) {
        this.bannerStatus = bannerStatus;
    }

    public Date getBannerDate() {
        return bannerDate;
    }

    public void setBannerDate(Date bannerDate) {
        this.bannerDate = bannerDate;
    }

    public String getBannerDescription() {
        return bannerDescription;
    }

    public void setBannerDescription(String bannerDescription) {
        this.bannerDescription = bannerDescription;
    }

    public Banner() {
    }
}
